<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="../../static/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" href="../../static/css/patient.css" />
    <link rel="stylesheet" href="../../static/css/global.css" />
    <title>处方记录</title>
</head>

<body>
    <div th:replace="homepageFP::patNav"></div>
    <main class="mainBox">
        <div class="container">
            <section id="preRecordslist" th:fragment="preRecordslist">
                <div th:each="list : ${preRecordslist}" th:if="${preRecordslist!=null}" class="shadow-sm mb-3 p-3">
                    <p>挂号编号：[[${list.medicalRecordId}]]</p>
                    <p>诊断结果：[[${list.diagnosis}]]</p>
                    <p>治疗方案：[[${list.advices}]]</p>
                    <p>处方药物：[[${list.prescription}]]</p>
                    <p>创建时间：[[${list.createTime}]]</p>
                    <p>处方状态：
                        <span class="text-success-emphasis" th:if="${list.finishTime!=null}">已完结</span>
                        <span class="text-primary-emphasis" th:if="${list.finishTime==null}">进行中</span>
                    </p>
                </div>
                <div class="text-center" th:if="${preRecordslist==null}">没有数据哦~</div>
            </section>
        </div>
    </main>
    <script src="../../static/bootstrap/js/bootstrap.bundle.min.js"></script>
</body>

</html>